package com.ruoyi.zhgd.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.annotation.DataColumn;
import com.ruoyi.common.annotation.DataPermission;
import com.ruoyi.zhgd.domain.NCementData;
import com.ruoyi.zhgd.domain.bo.NCementDataBo;
import com.ruoyi.zhgd.domain.vo.*;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.ruoyi.zhgd.dto.CementProduceMonitorDto;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 水稳拌合站数据Mapper接口
 *
 * @author zyb
 * @date 2023-09-06
 */
public interface NCementDataMapper extends BaseMapperPlus<NCementDataMapper, NCementData, NCementDataVo> {

    Date getLastDate(@Param("params")Map<String, Object> params);

    @DataPermission(
        @DataColumn(key = "deptName", value = "p.dept_id")
    )
    List<CementProduceMonitorDto> queryPages(Page page,@Param("params") Map<String, Object> params);

    @DataPermission(
        @DataColumn(key = "deptName", value = "p.dept_id")
    )
    List<CementJwDataVo> page(Page page,@Param("params") Map<String, Object> params);

    CementJwDataVo getById(@Param("id") String id);

    @DataPermission(
        @DataColumn(key = "deptName", value = "p.dept_id")
    )
    Page<NCementDataVo> pageQuality(@Param("params") NCementDataBo bo, Page<Object> build);

    @DataPermission(
        @DataColumn(key = "deptName", value = "p.dept_id")
    )
    Page<NCementDataQualityStatisticsVo> pageQualityStatistics(@Param("params") NCementDataBo bo, Page<Object> build);

    @DataPermission(
        @DataColumn(key = "deptName", value = "p.dept_id")
    )
    Page<NCementProduceWeightVo> pageCheck(@Param("params") NCementDataBo bo, Page<Object> build);

    @DataPermission(
        @DataColumn(key = "deptName", value = "p.dept_id")
    )
    Page<NCementOutputSummaryVo> pageOutputStatistics(@Param("params") NCementDataBo bo, Page<Object> build);

    @DataPermission(
        @DataColumn(key = "deptName", value = "p.dept_id")
    )
    Page<NCementProjectStatisticsListVo> pageProjectStatistics(@Param("params") NCementDataBo bo, Page<Object> build);

    @DataPermission(
        @DataColumn(key = "deptName", value = "p.dept_id")
    )
    Page<NCementMaterielConsumeVo> pageMaterielConsume(@Param("params") NCementDataBo bo, Page<Object> build);

    List<NCementOutputStatisticsVo> listForYear(@Param("params") NCementDataBo bo);

    List<NCementOutputStatisticsVo> listForMonth(@Param("params") NCementDataBo bo);

    List<NCementOutputStatisticsVo> listForDay(@Param("params") NCementDataBo bo);

    List<NCementOutputStatisticsVo> listForProject(@Param("params") NCementDataBo bo);

    List<NCementOutputStatisticsVo> listForMatch(@Param("params") NCementDataBo bo);

    List<NCementDataCheckVo> getByIds(@Param("ids") List<String> ids);
}
